<extend name="Public/base" />

<block name="body">
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>回复[用户留言]</h2>
    </div>
    <!-- 标签页导航 -->
<div class="tab-wrap">
    <ul class="tab-nav nav">
			<volist name=":parse_config_attr($model['field_group'])" id="group">
			<li data-tab="tab{$key}" <eq name="key" value="1">class="current"</eq>><a href="javascript:void(0);">{$group}</a></li>
			</volist>
    </ul>
    <div class="tab-content zc_for" >
    <!-- 表单 -->
    <form id="form" action="{:U('reply?model='.$model['id'])}" method="post" class="form-horizontal">
        <!-- 基础文档模型 -->
        <div style="height: 475px;overflow :auto">
		<div id="tab1" class="tab-pane in tab1 tab-look">
            <table>
                <volist name="content" id="data">
                    <tr>
                        <notempty name="data.1">
                            <td class="l"><font style="color: #01B468;">{$user.account}</font>：{$data.1}<pre>时间：{:set_show_time($key)}</pre></td>
                            <td></td>
                        </notempty>
                        <notempty name="data.2">
                            <td ></td>
                            <td class="l">回复：{$data.2}<pre>时间：{:set_show_time($key)}</pre></td>
                        </notempty>
                    </tr>
                </volist>
            </table>
        </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">回复：<span class="check-tips"></span></label>
            <div class="controls">
                <textarea name="reply" class="textarea input-large"></textarea>
            </div>
        </div>
        <div class="form-item cf">
            <input name="id" value="{$user.id}" type="hidden">
            <button class="btn submit-btn ajax-post hidden" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <a class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</a>
        </div>
    </form>
    </div>
</div>
</block>

<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Question/lists')}');
Think.setValue("prmoote_id_to", {$data.promote_id|default = 0});
$('#submit').click(function(){
    $('#form').submit();
});

$(function(){
	$('.time').datetimepicker({
        format: 'yyyy-mm-dd hh:ii',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });
    $('.date').datetimepicker({
        format: 'yyyy-mm-dd',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });
    showTab();
var id=$("#selfid").val();
var url=$("#url").val();
$("#chongzhi").click(function() {
 layer.open({
  type: 2,
  title: '充值记录',
  shadeClose: true,
  shade: 0.8,
  area: ['70%', '80%'],
  content: url+'admin.php?s=/Member/chax/id/'+id+''//iframe的url
}); 
});

$("#denglu").click(function() {
 layer.open({
  type: 2,
  title: '游戏登陆记录',
  shadeClose: true,
  shade: 0.8,
  area: ['70%', '80%'],
  content: url+'admin.php?s=/Member/denglu/id/'+id+''//iframe的url
}); 
});
$("#bind_balance").click(function() {
 layer.open({
  type: 2,
  title: '绑定平台币余额',
  shadeClose: true,
  shade: 0.8,
  area: ['70%', '80%'],
  content: url+'admin.php?s=/Member/bind_balance/id/'+id+''//iframe的url
}); 
});



});
</script>
</block>
